//先引入mockjs模块
import mockjs from "mockjs";

//把JSON数据格式引入进来
// webpack默认对外暴露：图片，JSON
import banner from "./banner.json"
import floor from "./floor.json"

//mock数据：第一个参数为请求地址，第二个参数为请求数据
mockjs.mock("/mock/banner", { code: 200, data: banner })
mockjs.mock("/mock/floor", { code: 200, data: floor })